<!--
 * @Author: wangyu
 * @Date: 2024-12-25 19:31:15
 * @LastEditTime: 2024-12-26 19:28:44
 * @LastEditors: wangyu
 * @Description: 通用容器头部
 * @FilePath: \dzsq-smartpark-platform\src\views\realtimeMonitoring\components\comHeader.vue
-->
<template>
  <div class="comHeader">
    <div class="comHeader-dot">
      <div class="comHeader-dot-1"></div>
      <div class="comHeader-dot-2"></div>
      <div class="comHeader-dot-3"></div>
    </div>
    <div class="comHeader-title">
      <span></span>
      {{ props.title }}
      <span></span>
    </div>
    <div class="comHeader-dot">
      <div class="comHeader-dot-3"></div>
      <div class="comHeader-dot-2"></div>
      <div class="comHeader-dot-1"></div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  title: String,
});
</script>
<style scoped lang="scss">
.comHeader {
  position: relative;
  background: rgba(236, 236, 236, 0.1);
  font-size: 28px;
  font-weight: bold;
  width: 100%;
  height: 58px;
  line-height: 58px;
  text-align: center;
  color: #8adafd;
  border-bottom: 2px solid #4e91ba;
  &-dot {
    display: flex;
    height: 100%;
    float: left;
    margin-left: 16px;
    align-items: center;
    > div {
      width: 20px;
      height: 20px;
      margin-right: 20px;
    }
    &-1 {
      background-color: rgba(102, 187, 249, 0.2) !important;
    }
    &-2 {
      background-color: rgba(102, 187, 249, 0.29) !important;
    }
    &-3 {
      background-color: rgba(102, 187, 249, 0.49) !important;
    }
    &:last-child {
      margin-right: 16px;
      float: right;
    }
  }
  &-title {
    position: relative;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    > span {
      position: relative;
      &::after {
        content: "";
        position: absolute;
        width: 12px;
        height: 12px;
        top: 50%;
        border: 2px solid #65b8f8;
        right: -24px;
        transform: translateY(-50%);
      }
      &::before {
        content: "";
        position: absolute;
        width: 8px;
        height: 8px;
        top: 50%;
        background: #65b8f8;
        right: -20px;
        transform: translateY(-50%);
      }
      &:first-child {
        &::after {
          left: -24px;
        }
        &::before {
          left: -20px;
        }
      }
    }
  }
}
</style>
